using System.Xml.Serialization;

namespace GirLoader.Input;

public class ArrayType : AnyType
{
    [XmlAttribute("name")]
    public string? Name { get; set; }

    [XmlAttribute("length")]
    public string? Length { get; set; }

    [XmlAttribute("zero-terminated")]
    public bool ZeroTerminated { get; set; }

    [XmlAttribute("fixed-size")]
    public string? FixedSize { get; set; }

    [XmlAttribute("type", Namespace = "http://www.gtk.org/introspection/c/1.0")]
    public string? CType { get; set; }

    [XmlElement("type")]
    public Type? Type { get; set; }

    [XmlElement("array")]
    public ArrayType? Array { get; set; }
}
